package com.lanhao.aot.carrierintegration.commondto;

import java.io.Serializable;

import com.alibaba.fastjson.JSON;

/**
 * 运输接口通用返回接口参数信息
 * 
 * @author kunzhou3
 * @date 2019年7月6日
 */
public class ApiResponseDTO<T> implements Serializable {
	private static final long serialVersionUID = 2584210308016003407L;
	private String result;
	private String resultDesc;
	private T resultData;

	public ApiResponseDTO(String result, String resultDesc) {
		this.result = result;
		this.resultDesc = resultDesc;
	}

	public String getResult() {
		return result;
	}

	public void setResult(String result) {
		this.result = result;
	}

	public String getResultDesc() {
		return resultDesc;
	}

	public void setResultDesc(String resultDesc) {
		this.resultDesc = resultDesc;
	}

	public T getResultData() {
		return resultData;
	}

	public void setResultData(T resultData) {
		this.resultData = resultData;
	}

	@Override
	public String toString() {
		return JSON.toJSONString(this);
	}
}
